const fs=require('fs')

fs.stat('./334882760_cover.jpg',(err,data)=>{
    if(err){
        console.log(err);
    }
    console.log(data);
    console.log(data.isFile());
    console.log(data.isDirectory());
})